<?php
/*
 * @Description  : 接口环境
 * @Author       : https://github.com/skyselang
 * @Date         : 2021-01-14
 * @LastEditTime : 2021-01-15
 */

namespace app\admin\controller;

use app\admin\model\EnterpriseElectricityInformation;
use app\admin\model\EnterpriseTotalInfo;
use app\admin\model\ProtocolInformation;
use app\admin\model\TestingFacilityInformation;
use app\admin\service\EnterpriseProductService;
use think\facade\Db;
use think\facade\Request;
use app\admin\validate\ApiEnvValidate;
use app\admin\service\ApiEnvService;
use think\Filesystem;
use function Symfony\Component\String\s;

class Common
{

    /**
     * @api {get}  admin/Common/commonList 获取下拉信息
     * @apiVersion 0.1.0
     * @apiName commonList
     * @apiGroup 公共接口
     *
     * @apiParam {string} pollutant_source_name 污染源单位名称.
     * @apiParam {string} be_affiliation 所属机构.
     * @apiHeader {string} AdminToken 返回的token.
     * @apiHeader {string} AdminAdminId 用户id .
     *
     * @apiSuccess {String} firstname Firstname of the User.
     * @apiSuccess {String} lastname  Lastname of the User.
     * @apiSampleRequest admin/Common/commonList
     * @apiSuccessExample Success-Response:
     *     HTTP/1.1 200 OK
     *     {
     *       "id": 1,
     *       "name": "张三"
     *     }
     *
     * @apiError UserNotFound The id of the User was not found.
     *
     * @apiErrorExample Error-Response:
     *     HTTP/1.1 404 Not Found
     *     {
     *       "error": "UserNotFound"
     *     }
     */
    public function commonList()
    {
       $data = [
           'id' => 1,
           "name" => "zhangsan",
       ];


        return success($data,"查询成功");
    }

}
